﻿using DevExpress.Mvvm.Gantt;
using System.Runtime.Serialization;

namespace DevWpfApp
{
    [DataContract]
    public class GanttResourceLinkProxy
    {
        public GanttResourceLinkProxy()
        {

        }
        private GanttResourceLink _link;
        public GanttResourceLink Link
        {
            get
            {
                if (_link == null)
                    _link = new GanttResourceLink();
                return _link;
            }
            set { _link = value; }
        }

        [DataMember]
        public object ResourceId
        {
            get { return Link.ResourceId; }
            set { Link.ResourceId = value; }
        }

        [DataMember]
        public double AllocationPercentage
        {
            get { return Link.AllocationPercentage; }
            set { Link.AllocationPercentage = value; }
        }
    }
}
